/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 15085202591
 * Date: 2022-11-24
 * Time: 8:50
 */
class Person{
    private String id;
    private String name;

    public Person(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class Student extends Person{
    private String sno;
    public Student(String id,String name,String sno) {
        super(id,name);
        this.sno = sno;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }
}
class Teacher extends Person{
    private String post;

    public Teacher(String id, String name, String post) {
        super(id, name);
        this.post = post;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }
}
public class Main6 {

}
